package cn.com.dycc.sys_manage.usersysmanagement.entity;

import java.io.Serializable;
import java.util.Date;

public class UserPart implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 7264649186105488151L;
	
	private String id;                 //用户ID
	private String account;				//用户帐号
	private String wx_id;				//微信id
	private String wx_nickname;			//微信昵称
	private Date binding_date;			//微信绑定时间
	private String username;			//用户姓名
	private String nickname;			//用户昵称
	private String card_no;				//工作卡编号
	private String face;				//头像
	private String political_status;	//政治面貌
	
	public UserPart(){}

	public UserPart(String id, String account, String wx_id, String wx_nickname, Date binding_date, String username,
			String nickname, String card_no, String face, String political_status) {
		super();
		this.id = id;
		this.account = account;
		this.wx_id = wx_id;
		this.wx_nickname = wx_nickname;
		this.binding_date = binding_date;
		this.username = username;
		this.nickname = nickname;
		this.card_no = card_no;
		this.face = face;
		this.political_status = political_status;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getWx_id() {
		return wx_id;
	}

	public void setWx_id(String wx_id) {
		this.wx_id = wx_id;
	}

	public String getWx_nickname() {
		return wx_nickname;
	}

	public void setWx_nickname(String wx_nickname) {
		this.wx_nickname = wx_nickname;
	}

	public Date getBinding_date() {
		return binding_date;
	}

	public void setBinding_date(Date binding_date) {
		this.binding_date = binding_date;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getCard_no() {
		return card_no;
	}

	public void setCard_no(String card_no) {
		this.card_no = card_no;
	}

	public String getFace() {
		return face;
	}

	public void setFace(String face) {
		this.face = face;
	}

	public String getPolitical_status() {
		return political_status;
	}

	public void setPolitical_status(String political_status) {
		this.political_status = political_status;
	}

	@Override
	public String toString() {
		return "UserPart [id=" + id + ", account=" + account + ", wx_id=" + wx_id + ", wx_nickname=" + wx_nickname
				+ ", binding_date=" + binding_date + ", username=" + username + ", nickname=" + nickname + ", card_no="
				+ card_no + ", face=" + face + ", political_status=" + political_status + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		UserPart other = (UserPart) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	
	

}
